<?php
namespace App\Services\ThirdPayments\BankTraits;

use App\Lib\BankMap;

trait YIKABankMap
{
    private $bankMap = [
        BankMap::GONGSHANG       =>  '967',
        BankMap::JIANSHE         =>  '965',
        BankMap::CHINABANK       =>  '963',
        BankMap::ZHAOSHANG       =>  '970',
        BankMap::ZHONGXIN        =>  '962',
        BankMap::XINGYE          =>  '972',
        BankMap::GUANGDA         =>  '986',
        BankMap::NONGYE          =>  '964',
        BankMap::YOUZHEN         =>  '971',
        BankMap::SHENFA          =>  '974',
        BankMap::GUANGFA         =>  '985',
        BankMap::MINSHENG        =>  '980',
        BankMap::JIAOTONG        =>  '981',
        BankMap::ZHESHANG        =>  '968',
        BankMap::SHANGHAI        =>  '975',
        BankMap::NINGBO          =>  '1000',
        BankMap::PUFA            =>  '977',
        BankMap::NANJING         =>  '979',
        BankMap::PINGAN          =>  '978',
    ];

    public function getBank($bankCode)
    {
        if (array_key_exists($bankCode, $this->bankMap)) return $this->bankMap[$bankCode];
        else return '967';
    }
}
